import http from '../service'

// 上传七牛云图片需要的token
export const getQiniuToken = () => {
    return http.get({
        url: '/file/uploadToken'
    })
}

export const searchFace = (data = {}) => {
    return http.post({
        url: '/face/search',
        data
    })
}

export const addFace = (data = {}) => {
    return http.post({
        url: '/face/add',
        data
    })
}

export const getAllFaceList = (data = {}) => {
    return http.get({
        url: '/face/allList',
        params: { ...data }
    })
}
